package cn.wsalix.finance.form;

import java.util.Date;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.Data;
import lombok.EqualsAndHashCode;
import cn.anlaser.form.SimpleForm;
import cn.wsalix.finance.entity.Bank;
import cn.wsalix.finance.entity.Customer;

@Data
@EqualsAndHashCode(callSuper = false)
public class CreditCardForm extends SimpleForm {

	private Long customerId;
	private String cardNum;// 卡号
	private Integer limitMax;// 卡片额度
	private Integer initAmount;// 初始消费金额
	@Temporal(TemporalType.DATE)
	// 初始日期
	private Date initday;

	private Integer wasteAmount;// 已消费金额

	@Temporal(TemporalType.DATE)
	// 账单日
	private Date billday;
	@Temporal(TemporalType.DATE)
	// 还款日
	private Date repaymentday;
	private Long bankId;

	private Bank bank;
	//
	private Customer customer;
}
